let url;
let center;
let fileUrl;
let tileLayerUrl;
let bounds;
// tileLayerUrl = 'https://map.api.alorvalley.com/map/slff/[z]/[x]/[y]'
tileLayerUrl = 'https://slff.oss-cn-hangzhou.aliyuncs.com/map/slff/tiles/[z]/[x]_[y].png'
// tileLayerUrl = 'https://map.api.alorvalley.com/map/slff/tiles/[z]/[x]_[y].png'
if (process.env.NODE_ENV === 'development') {
  url = 'https://map.api.alorvalley.com/'
  // url = 'http://localhost:4001/'
  fileUrl = url + 'upload/'
  center = [120.0604820251465, 30.261031807503453];
  bounds = [120.05858523941041, 30.255858053933306, 120.06455898284912, 30.269686718762845]
} else {
  url = window.config.url;
  center = window.config.center;
  fileUrl = window.config.fileUrl;
  // tileLayerUrl = window.config.tileLayerUrl;
  bounds = window.config.BOUNDS
}

export default {
  URL: url,
  CENTER: center,
  FILE_URL: fileUrl,
  tileLayerUrl,
  bounds
}